﻿using System.Linq;
using Core.Contract.DataContract;
using Data.DAO;
using www.Models;

namespace Data.BO
{
    public class StaffBO//:BaseBO<StaffDAO,RelaxManagerMember>
    {
        #region value
        private readonly StaffDAO _staffRefDao=new StaffDAO();
        #endregion

        #region Hàm lấy dữ liệu

        public IQueryable<RelaxStaffDataContract> GetStaffDataContracts()
        {
           return _staffRefDao.GetStaffDataContracts();
        }

        public IQueryable<RelaxStaffDataContract> GetStaffDataContract()
        {
            return _staffRefDao.GetStaffDataContract();
        }

        #endregion

        #region Hàm Add
      
        public void Add(RelaxManagerMember staff)
        {
            _staffRefDao.Add(staff);
        }
       
        #endregion

        #region Hàm Update
        public void Update(RelaxManagerMember staff)
        {
           _staffRefDao.Update(staff);
        }
        #endregion

        #region Hàm Delete
        public void Delete(long iId)
        {
            _staffRefDao.Delete(iId);
        }
        #endregion

    }
}
